package com.dx.common.table.ppt;

/**
 * AbstractRet_rul_aplyId entity provides the base persistence definition of the
 * Ret_rul_aplyId entity. @author MyEclipse Persistence Tools
 */

public class Ret_rul_aplyId implements java.io.Serializable {

	// Fields

	private String tool_run_mode;
	private String tool_id_fk;
	private String port_typ;
	private String port_id;
	private String req_apname;

	// Constructors

	/** default constructor */
	public Ret_rul_aplyId() {
	}

	/** full constructor */
	public Ret_rul_aplyId(String tool_run_mode, String tool_id_fk,
			String port_typ, String port_id, String req_apname) {
		this.tool_run_mode = tool_run_mode;
		this.tool_id_fk = tool_id_fk;
		this.port_typ = port_typ;
		this.port_id = port_id;
		this.req_apname = req_apname;
	}

	// Property accessors

	public String getTool_run_mode() {
		return this.tool_run_mode;
	}

	public void setTool_run_mode(String tool_run_mode) {
		this.tool_run_mode = tool_run_mode;
	}

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public String getPort_typ() {
		return this.port_typ;
	}

	public void setPort_typ(String port_typ) {
		this.port_typ = port_typ;
	}

	public String getPort_id() {
		return this.port_id;
	}

	public void setPort_id(String port_id) {
		this.port_id = port_id;
	}

	public String getReq_apname() {
		return this.req_apname;
	}

	public void setReq_apname(String req_apname) {
		this.req_apname = req_apname;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_rul_aplyId))
			return false;
		Ret_rul_aplyId castOther = (Ret_rul_aplyId) other;

		return ((this.getTool_run_mode() == castOther.getTool_run_mode()) || (this
				.getTool_run_mode() != null
				&& castOther.getTool_run_mode() != null && this
				.getTool_run_mode().equals(castOther.getTool_run_mode())))
				&& ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
						.getTool_id_fk() != null
						&& castOther.getTool_id_fk() != null && this
						.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getPort_typ() == castOther.getPort_typ()) || (this
						.getPort_typ() != null
						&& castOther.getPort_typ() != null && this
						.getPort_typ().equals(castOther.getPort_typ())))
				&& ((this.getPort_id() == castOther.getPort_id()) || (this
						.getPort_id() != null && castOther.getPort_id() != null && this
						.getPort_id().equals(castOther.getPort_id())))
				&& ((this.getReq_apname() == castOther.getReq_apname()) || (this
						.getReq_apname() != null
						&& castOther.getReq_apname() != null && this
						.getReq_apname().equals(castOther.getReq_apname())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_run_mode() == null ? 0 : this.getTool_run_mode()
						.hashCode());
		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37 * result
				+ (getPort_typ() == null ? 0 : this.getPort_typ().hashCode());
		result = 37 * result
				+ (getPort_id() == null ? 0 : this.getPort_id().hashCode());
		result = 37
				* result
				+ (getReq_apname() == null ? 0 : this.getReq_apname()
						.hashCode());
		return result;
	}

}